package com.niuwa.p2p.dao.borrowinfomg;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.vo.borrowinfomg.LoanInfoVo;
import com.niuwa.p2p.vo.borrowinfomg.enterpriseinfomg.AppBorrowInfoVo;
import com.niuwa.p2p.vo.borrowinfomg.enterpriseinfomg.P2PBorrowInfoVo;

@MyBatisDao
public interface IBorrowInfoDao {
	/**
	 * 查询所有借款项目信息数目
	 * @param borrowType 
	 * @return
	 */
	int count(String borrowType);
	/**
	 * 分页查询所有借款项目信息
	 * @param paramMap
	 * @return
	 */
	List<P2PBorrowInfoVo> searchP2PBorrowinfo(Map<String, Object> paramMap);

	public Integer getNextLoanSeq();
	public void saveNextLoanSeq(Integer seqValue);
	
	public String getCurrentYear();
	
	public String getCurrentMonth();
	
	public LoanInfoVo loadLoanInfo(String projectNo);
	/**
	 * 查询App借款项目信息列表
	 * 
	 * @param paramMap
	 * @return
	 */
	List<AppBorrowInfoVo> searchAppBorrowinfo(Map<String, Object> paramMap);
	/**
	 * 查询p2p借款项目的投资金额
	 * @param projectNo
	 * @return
	 */
	BigDecimal searchInvetAmount(String projectNo);
}
